var express = require('express');
var db = require('../../../tools/database')
var util = require('../../../tools/util')

var router = express.Router();

// 获取用户完整信息
router.use(function (req, res, next) {

	util.jwtVerify(req, res, (decoded) => {
		let userName = decoded.userName;
		let sql = `SELECT * FROM Users WHERE UserName=?`
		db.queryRespond(sql, [userName], res, true)
	})

});

module.exports = router;